namespace TSL.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using TSL.DAL;
    using TSL.Model;

    public class SSC_EndTime
    {
        private readonly TSL.DAL.SSC_EndTime dal = new TSL.DAL.SSC_EndTime();

        public void AddSSC_EndTime(TSL.Model.SSC_EndTime model)
        {
            this.dal.AddSSC_EndTime(model);
        }

        public void Delete(string ID)
        {
            this.dal.Delete(ID);
        }

        public void DeleteSSC_EndTime(string ID)
        {
            this.dal.DeleteSSC_EndTime(ID);
        }

        public bool Exists(string name)
        {
            return this.dal.Exists(name);
        }

        public bool Exists(string ssc_id, string lottery_num)
        {
            return this.dal.Exists(ssc_id, lottery_num);
        }

        public List<TSL.Model.SSC_EndTime> GetListArray()
        {
            return this.dal.GetListArray("");
        }

        public List<TSL.Model.SSC_EndTime> GetListArray(string strWhere)
        {
            return this.dal.GetListArray(strWhere);
        }

        public List<TSL.Model.SSC_EndTime> GetListArrayBySupID(string supID)
        {
            string strWhere = " ID=" + supID;
            return this.dal.GetListArray(strWhere);
        }

        public DataSet GetListFromView(string strWhere)
        {
            return this.dal.GetListFromView(strWhere);
        }

        public TSL.Model.SSC_EndTime GetModel(string ID)
        {
            return this.dal.GetModel(ID);
        }

        public TSL.Model.SSC_EndTime GetModel(string name, string password)
        {
            return this.dal.GetModel(name, password);
        }

        public void Update(TSL.Model.SSC_EndTime model)
        {
            this.dal.Update(model);
        }
    }
}

